<project name="projbanque" default="compile" basedir="./">
	
	<property name="source" value="./src" />
	<property name="classes" value="./bin" />
	<property name="nomclasses" value="bin" />
	<property name="nombuild" value="build" />
	<property name="nomjar" value="test.jar" />
	
	<target name="compile" depends="prepare">
		<echo message="Compilation en cours ..." />
		<javac srcdir="${source}"
			destdir="${classes}"
		/>
		<echo message="Compilation finie" />
	</target>
	
	<target name="prepare">
		<mkdir dir="${nomclasses}" />
	</target>
	
	<target name="clean">
		<delete file="${classes}" />
		<delete file="${nombuild}" />
	</target>
	
	<target name="build" depends="compile" if="${nomclasses}">
		<mkdir dir="${nombuild}" />
		<jar jarfile="${nomjar}" basedir="${nombuild}" />
	</target>
	
	<target name="build" depends="compile">
		<mkdir dir="${nombuild}" />
		<jar jarfile="${nomjar}" basedir="${nombuild}" />
	</target>
</project>
